//
//  WriteDetailController.h
//  DIYCityKorea
//
//  Created by 훈준 박 on 10. 4. 27..
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "IndicatorViewController.h"
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"

#define kFilename @"data.plist"

@interface WriteDetailController : UIViewController<UITextFieldDelegate, 
													UIAlertViewDelegate,
													 UITextViewDelegate, 
													 CLLocationManagerDelegate> {
	BOOL keyboardShown;
    BOOL locationUpdated;

	UIImageView *takenPhotoImageView;
	UITextField *emailField;
	UITextView *detailField;
	
	CLLocationManager *locationManager;
	CLLocation *startingPoint;
	IndicatorViewController *indicatorSubViewController;
	UIBarButtonItem *reportBtn;
}

@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, retain) CLLocation *startingPoint;

@property (nonatomic, retain) IndicatorViewController *indicatorSubViewController;

@property (nonatomic, retain) IBOutlet UIImageView *takenPhotoImageView;
@property (nonatomic, retain) IBOutlet UITextField *emailField;
@property (nonatomic, retain) IBOutlet UITextView *detailField;

@property (nonatomic, retain) UIBarButtonItem *reportBtn;

@property (assign) BOOL locationUpdated;
@property (assign) BOOL keyboardShown;

-(void)setLeftRightBarButtonItem;
-(IBAction)hiddenKeyboard:(id)sender;
-(void)showIndicatorView:(NSString*)message;
-(void)removeIndicatorView;
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error;


-(NSString *)dataFilePath;
//-(void)applicationWillTerminate:(NSNotification *)notification;

@end
